package com.composite.pattern;

/**
 * @author chenchen
 * @description
 * @date 2023/11/10 13:46
 */
public class Worker extends Component {

    public Worker(String name, String describe) {
        super(name, describe);
    }

    @Override
    public void show() {
        System.out.println("名称：" + getName() + "，描述：" + getDescribe());
    }
}
